var pageii = null;
var grid = null;
$(function () {
    grid = lyGrid({
        pagId: 'paging',
        l_column: [{
            colkey: "agent_name",
            name: "机构商"
        }, {
            colkey: "user_name",
            name: "盟友"
        }, {
            colkey: "income",
            name: "返现金额(元)",
            width: '120px'
        }, {
            colkey: "memo",
            name: "备注"
        }, {
            colkey: "time",
            name: "返现时间"
        }],
        jsonUrl: rootPath + '/star/income-cashback/findByPage.shtml',
        dymCol: true,
        checkbox: true,
        serNumber: true
    });

    $("#search").click("click", function () { // 绑定查询按扭
        var searchParams = $("#searchForm").serializeJson(); // 初始化传参数
        grid.setOptions({
            data: searchParams
        });
    });
});
